import { ajax } from '../http.js';

const incomeDetailsUrl = '/authc/user_assets/find_income'; // 收益数值-我的资产
const findIncomeDetailsUrl = '/authc/user_assets/find_income_details'; // 收益明细图表
const rewardCategoryUrl = '/authc/user_assets/find_reward_category'; // 奖励分类下拉值 --子界面
const incomeDetailsListUrl = '/authc/user_assets/find_income_details_page'; // 收益明细列表

const incomeDetails = (data, success, fail) => { // 收益数值-我的资产
  ajax({
    url: incomeDetailsUrl,
    data: data,
    success: success,
    fail: fail
  });
};
const findIncomeDetails = (data, success, fail) => { // 收益明细图表
  ajax({
    url: findIncomeDetailsUrl,
    data: data,
    success: success,
    fail: fail
  });
};
const rewardCategory = (data, success, fail) => { // 奖励分类下拉值
  ajax({
    url: rewardCategoryUrl,
    data: data,
    success: success,
    fail: fail
  });
};

const incomeDetailsList = (data, success, fail) => { // 收益明细列表
  ajax({
    url: incomeDetailsListUrl,
    data: data,
    success: success,
    fail: fail
  });
};
export {
  incomeDetails, // 收益数值-我的资产
  findIncomeDetails, // 收益明细图表
  rewardCategory, // 奖励分类下拉值
  incomeDetailsList // 收益明细列表
}